package com.comac.print.component.app.gatewayimpl.database.dataobject;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 模板表
 * </p>
 *
 * @author yy
 * @since 2022-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("print_masterplate")
public class MasterPlateDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;
    /**
     * 服务戳
     */
    @TableField("system_id")
    private String systemId;
    /**
     * 场景名
     */
    @TableField("bussiness_id")
    private String bussinessId;
    /**
     * 版本号
     */
    @TableField("version")
    private String version;
    /**
     * 从哪一个模板升版
     */
    @TableField("from_version")
    private String fromVersion;
    /**
     * 模板生效开始
     */
    @TableField("valid_start")
    private Date validStart;
    /**
     * 模板生效结束
     */
    @TableField("valid_end")
    private Date validEnd;
    /**
     * 模板url
     */
    @TableField("mp_url")
    private String mpUrl;
    /**
     * 操作人
     */
    @TableField("operator")
    private String operator;
    /**
     * 操作人名字
     */
    @TableField("operator_name")
    private String operatorName;
    /**
     * 操作时间
     */
    @TableField("operator_time")
    private Date operatorTime;

    /**
     * deleteFlag
     */
    @TableField(value = "delete_flag", fill = FieldFill.INSERT_UPDATE)
    private Boolean deleteFlag;


}
